project(qniga)
cmake_minimum_required(VERSION 2.6)
find_package(Qt4 REQUIRED)

include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})

set(qniga_SRCS book/format/base.cpp book/format/txt.cpp book/paragraph/text.cpp book/loader/impl.cpp config/cmdhandler.cpp config/loader.cpp config/manager.cpp ui/base.cpp ui/factory.cpp ui/guibase.cpp ui/book/view.cpp ui/scroll/widget.cpp ui/scroll/view.cpp qnigaapp.cpp main.cpp)
qt4_automoc(${qniga_SRCS})
add_executable(qniga ${qniga_SRCS})
target_link_libraries(qniga ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})

add_subdirectory(ui)
add_subdirectory(config)

add_subdirectory(book)